<?php

namespace Model;
use Think\Model;

class ManagerModel extends Model{
   function checknamepwd($nm,$pwd){
      $info = $this-> where("mg_name='$nm'")->find();
        if($info['mg_pwd']=$pwd){
            return $info;
        }     
        return false;
   }
}
